package com.onlyphoto.onlymall.mvp.contract

import com.onlyphoto.onlymall.base.IBasePresenter
import com.onlyphoto.onlymall.base.IBaseView
import com.onlyphoto.onlymall.bean.GoodsSimpleBean
import com.onlyphoto.onlymall.bean.request.PayBean
import com.onlyphoto.onlymall.bean.response.AddressBean
import com.onlyphoto.onlymall.bean.response.CouponBean
import com.onlyphoto.onlymall.bean.response.FreightBean
import com.onlyphoto.onlymall.bean.response.OrderSuccessBean


interface COrderConfirm {

    interface IPOrderConfirm : IBasePresenter {
        fun getAddress()
        fun getFreight(list: ArrayList<GoodsSimpleBean>)
        fun getUserCoupons(get_type: Int, status: Int)
        fun createOrder()
    }


    interface IVOrderConfirm : IBaseView {
        fun getAddressSuccess(list: ArrayList<AddressBean>)
        fun emptyAddress()
        fun getFreightSuccess(bean: FreightBean)
        fun getCouponsSuccess(list: ArrayList<CouponBean>)
        fun getPayBean() : PayBean
        fun orderCreateSuccess(data: OrderSuccessBean)
        fun showToast(msg: String)
    }
}